package com.ruoyi.kjy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.mp.domain.CommonEntity;
import io.swagger.models.auth.In;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description:
 * @Author: Hi，Wang
 * @Date: 11/10,0010 20:27
 */

@Data
public class RoomReservation extends CommonEntity {


    @TableId(type = IdType.AUTO)
    private Long id;


    private Long roomId;

    private Long userId;
    // 公司id
    private Long enterpriseId;
   // 预订开始时间
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    // 预订结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    // 预约备注
    private String remark;

    // 预约状态
    private Integer status;  // 0 待确认 1 已确认 2 已取消 3 已完成





}
